﻿namespace AnyOffice.Model
{
    using System;

    public class AddressGroupData
    {
        protected int _groupId = -1;
        protected string _groupName = string.Empty;
        protected object _userId;

        public int GroupId
        {
            get
            {
                return this._groupId;
            }
            set
            {
                this._groupId = value;
            }
        }

        public string GroupName
        {
            get
            {
                return this._groupName;
            }
            set
            {
                this._groupName = value;
            }
        }

        public string UserId
        {
            get
            {
                return (string) this._userId;
            }
            set
            {
                this._userId = value;
            }
        }

        public bool UserIdIsNull
        {
            get
            {
                return (this._userId == null);
            }
            set
            {
                if (value)
                {
                    this._userId = null;
                }
            }
        }
    }
}

